#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

int main()
{
    int score;
    while (scanf("%d", &score) != EOF)
    {
        if (score >= 90 && score <= 100) 
        {
            printf("Perfect");
        }
        if (score >= 60)
        {
            printf("Pass\n");
        }
        else if(score<=60&&score>=0)
        {
            printf("Fail\n");
        }
    }
    return 0;
}